import { request } from '@/network/request'

// 获取用户信息
export const getLogin = (phone, password) => {
  return request({
    url: '/login/cellphone',
    method: 'post',
    data: {
      phone,
      password
    }
  })
}
// 手机号登录
export const getPhoneLogin = data => {
  return request({
    url: '/login/cellphone',
    method: 'post',
    data
  })
}
// 获取用户歌单
export const getUserSong = uid => {
  return request({
    url: '/user/playlist',
    params: {
      uid,
      limit: 30,
      offset: 0
    }
  })
}